// components/hl-picker/hl-picker.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    model: {
      type: String,
      value: 'selector'
    },
    disabled: {
      type: Boolean,
      value: false
    },
    value: {
      type: null,
      value: '',
    },
    range: {
      type: Array,
      value: []
    },
    rangeKey: {
      type: String,
      value: ''
    }
  },

  /**
   * 组件的初始数据
   */
  data: {

  },

  /**
   * 组件的方法列表
   */
  methods: {
    onChange: function(e) {
      //2.传值
      let myEventDetail = {
        detail: e.detail
      };
      this.triggerEvent('mychange', myEventDetail, null);
    }
  }
})